/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx.oop;

/**
 * <p>Project: jse2303 - C6
 * <p>Powered by webrx On 2023-07-14 09:10:14
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class C6 {

    public static void abc() {
        System.out.println("abc(静态方法)");
    }

    static {
        System.out.println("静态程序块");
        for (int i = 3; i > 0; i--) {
            System.out.println("staitc " + i);
        }
    }

    //初始化程序块（代码块）
    {
        System.out.println("ok");
    }

    //构造方法
    public C6() {
        System.out.println("C()构造方法");
    }

    public static void main(String[] args) {
        //C6 c1 = new C6();
        //System.out.println("----------");
        //C6 c2 = new C6();
        //System.out.println("----------");
        //C6 c3 = new C6();
        //System.out.println("----------");
        abc();
        abc();

        C6 c2 = new C6();

    }

    {
        System.out.println("{}");
        for (int i = 5; i > 0; i--) {
            System.out.println("{" + i + "}");
        }
    }
}
